#!/bin/sh

TRACKER_LIST_BEST="https://cdn.jsdelivr.net/gh/ngosang/trackerslist/trackers_best.txt"
TRACKER_LIST_BEST_IP="https://cdn.jsdelivr.net/gh/ngosang/trackerslist/trackers_best_ip.txt"
TRACKER_LIST_NYAA="https://cdn.jsdelivr.net/gh/nyaadevs/nyaa/trackers.txt"
TRACKER_LIST_XIU2_BEST="https://cdn.jsdelivr.net/gh/XIU2/TrackersListCollection/best.txt"

curl -sL "${TRACKER_LIST_BEST}" > trackers.txt
curl -sL "${TRACKER_LIST_BEST_IP}" >> trackers.txt
curl -sL "${TRACKER_LIST_NYAA}" >> trackers.txt
curl -sL "${TRACKER_LIST_XIU2_BEST}" >> trackers.txt

sort -u trackers.txt > trackers.new.txt
mv trackers.new.txt trackers.txt
